@echo off
REM Modified this adapting to your environment
IF NOT EXIST "%JAVA_HOME%" goto error

set JAVA=%JAVA_HOME%\bin\java
set CP=%JAVA_HOME%\lib\tools.jar;%CLASSPATH%;lib\ant_1.3.jar;lib\xerces-J_1.4.0.jar
"%JAVA%" -classpath "%CP%" -Dant.home=lib org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 -buildfile build.xml

goto end
:error
echo You must have installed the JDK and set the JAVA_HOME environment variable correctly

:end